/*
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-03-02 09:54:42
 * @LastEditTime : 2023-09-01 12:02:08
 */
import components from 'unplugin-vue-components/vite'
// import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

export default function createComponents() {
  return components({
    // resolvers: [ElementPlusResolver()],
    dirs: ['src/global/components', 'src/MicroApp/global/components'],
    extensions: ['vue', 'tsx'],
    include: [/\.vue$/, /\.vue\?vue/, /\.tsx$/, /\.jsx$/],
    dts: 'src/global/types/components.d.ts'
  })
}
